Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(files_sharing): Fix error messages from password policy #49361

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Nov 19, 2024

Follow-up of #48918

Summary

Exceptions thrown from password_policy may bubble up in share creation or update when a password is used. Their message is meant to be shown to the user. This always the case for HintException so we catch that instead of the subclass GenericShareException.

Checklist

Exceptions thrown from password_policy may bubble up in share creation
 or update when a password is used. Their message is meant to be shown
 to the user. This always the case for HintException so we catch that
 instead of the subclass GenericShareException.

Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc added the 3. to review Waiting for reviews label Nov 19, 2024
@come-nc come-nc self-assigned this Nov 19, 2024
@come-nc come-nc added the bug label Nov 19, 2024
@come-nc come-nc added this to the Nextcloud 31 milestone Nov 19, 2024
@come-nc
Copy link
Contributor Author

come-nc commented Nov 19, 2024

/backport to stable30

@come-nc
Copy link
Contributor Author

come-nc commented Nov 19, 2024

/backport to stable29

@come-nc
Copy link
Contributor Author

come-nc commented Nov 19, 2024

/backport to stable28

@skjnldsv skjnldsv merged commit 6559c20 into master Nov 19, 2024
186 checks passed
@skjnldsv skjnldsv deleted the fix/fix-share-creation-error-messages branch November 19, 2024 10:17
@tobiasKaminsky
Copy link
Member

I tested it with my Android test case and it still fails with generic error message.
I am doing an update to /ocs/v2.php/apps/files_sharing/api/v1/shares

@come-nc
Copy link
Contributor Author

come-nc commented Dec 12, 2024

/backport to stable30

@come-nc
Copy link
Contributor Author

come-nc commented Dec 12, 2024

/backport to stable29

@come-nc
Copy link
Contributor Author

come-nc commented Dec 12, 2024

/backport to stable28

@come-nc
Copy link
Contributor Author

come-nc commented Dec 12, 2024

Requiring backports again now that #49366 is approved, both PR will need to be backported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants